.class public Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;
.super Landroid/widget/LinearLayout;
.source "MeasurementChangeLinearLayout.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 0
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 13
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 14
    return-void
.end method


# virtual methods
.method protected onMeasure(II)V
    .locals 7
    .parameter "widthMeasureSpec"
    .parameter "heightMeasureSpec"

    .prologue
    const/4 v0, 0x0

    .line 18
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v3

    .line 19
    invoke-super {p0, p1, p2}, Landroid/widget/LinearLayout;->onMeasure(II)V

    .line 22
    invoke-virtual {p0}, Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;->getChildCount()I

    move-result v4

    move v1, v0

    move v2, v0

    .line 23
    :goto_0
    if-ge v1, v4, :cond_0

    .line 24
    invoke-virtual {p0, v1}, Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;->getChildAt(I)Landroid/view/View;

    move-result-object v5

    .line 25
    invoke-virtual {v5}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/view/ViewGroup$MarginLayoutParams;

    .line 26
    invoke-virtual {v5}, Landroid/view/View;->getMeasuredHeight()I

    move-result v5

    iget v6, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

    add-int/2addr v5, v6

    iget v0, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

    add-int/2addr v0, v5

    add-int/2addr v2, v0

    .line 23
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    .line 29
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;->getPaddingBottom()I

    move-result v0

    add-int/2addr v0, v2

    invoke-virtual {p0}, Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;->getPaddingTop()I

    move-result v1

    add-int/2addr v0, v1

    invoke-virtual {p0, v3, v0}, Lcom/instagram/android/explore/widget/MeasurementChangeLinearLayout;->setMeasuredDimension(II)V

    .line 30
    return-void
.end method
